using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Blog_Type - 博客分类 - 对象继承类
    /// </summary>
    [MetadataType(typeof(BlogTypeValidaTion))]
    public class BlogType : IBlogType<BlogType>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class BlogTypeValidaTion
       {

     

        /// <summary>
        /// 博客分类
        /// </summary>
        [Display(Name ="博客分类")]
        [Required]
        [StringLength(36)]
        public String BlogTypeId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 名称
        /// </summary>
        [Display(Name ="名称")]
        [Required]
        [StringLength(50)]
        public String Title
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 用户ID
        /// </summary>
        [Display(Name ="用户ID")]
        [Required]
        [StringLength(36)]
        public String UserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name ="排序")]
        [Required]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int Sno
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
